package com.pfc.wifiscan;


import java.util.ArrayList;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.pfc.others.ConjuntoLecturas;
import com.pfc.others.FileManagement;
import com.pfc.others.Fingerprint;
import com.pfc.others.LocateManagement;
import com.pfc.others.Location;
import com.pfc.others.SQLiteManagement;

public class LocateActivity extends Activity {
	
	String locationName;
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_locate);
		this.locationName = getIntent().getStringExtra("location");
	}

		
	
	public void locate(View view){
		String result = new LocateManagement().getActualPlace(this.getApplicationContext(), locationName);
		Toast.makeText(this,result,Toast.LENGTH_LONG).show();
	}


	

	@Override
	public void onBackPressed() {
		Intent i = new Intent(this, MainActivity.class);
		i.putExtra("location", this.locationName);
		startActivity(i);
	}
	

}
